package org.nhindirect.stagent.cert;

import java.security.cert.X509Certificate;
import java.util.Collection;

public interface IX509Store 
{
    public Collection<X509Certificate> getCertificates(String subjectName);
    
    public boolean contains(X509Certificate cert);        
        
    public void add(X509Certificate cert);
    public void add(Collection<X509Certificate> certs);
    
    public void remove(X509Certificate cert);
    public void remove(Collection<X509Certificate> certs);

    public void remove(String subjectName);

    public void update(X509Certificate cert);
    public void update( Collection<X509Certificate> certs);
    
    public Collection<X509Certificate> getCertificates();    
}
